package Var1022.Circle;

public class Circle {
    private  double p;//半径
    private static double r=3.14;//

    public Circle() {
    }

    public Circle(double p) {
        this.p = p;
    }

    public double getP() {
        return p;
    }

    public void setP(double p) {
        this.p = p;
    }

    public static double getR() {
        return r;
    }

    public static void setR(double r) {
        Circle.r = r;
    }

    //面积
    public static double themeasureofarea(int p){
        System.out.println(p*p*r);
        return p*p*r;
    }

    //周长
    public static double Perimeter(int p){
        System.out.println(2*p*r);
        return 2*p*r;
    }
}
